package com.example.lenovo.findmyclass.Menu.Reservation;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.widget.Button;

import com.example.lenovo.findmyclass.MainActivity;
import com.example.lenovo.findmyclass.Menu.Reservation.ReservationButton1.ReservationA1;
import com.example.lenovo.findmyclass.R;

public class ReservationClass extends Activity {
    private Button back, next;
    private Button a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.activity_reservation_class);
        back = (Button) findViewById(R.id.back);
        a1 = findViewById(R.id.a1);
        a2 = findViewById(R.id.a2);
        a3 = findViewById(R.id.a3);
        a4 = findViewById(R.id.a4);
        a5 = findViewById(R.id.a5);
        a6 = findViewById(R.id.a6);
        a7 = findViewById(R.id.a7);
        a8 = findViewById(R.id.a8);
        a9 = findViewById(R.id.a9);
        a10 = findViewById(R.id.a10);
        a11 = findViewById(R.id.a11);
        a12 = findViewById(R.id.a12);
        a1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                    Intent a1 = new Intent(ReservationClass.this,ReservationA1.class);
                    startActivity(a1);
            }
        });
        a2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent a2 = new Intent(ReservationClass.this,ReservationA1.class);
                startActivity(a2);
            }
        });
        a3.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent a3 = new Intent(ReservationClass.this,ReservationA1.class);
                startActivity(a3);
            }
        });
        a4.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent a4 = new Intent(ReservationClass.this,ReservationA1.class);
                startActivity(a4);
            }
        });
        a5.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent a5 = new Intent(ReservationClass.this,ReservationA1.class);
                startActivity(a5);
            }
        });
        next=findViewById(R.id.next);
        back.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent backIntent = new Intent(ReservationClass.this, MainActivity.class);
                startActivity(backIntent);
            }
        });
        next.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent next = new Intent(ReservationClass.this,ReservationClass1.class);
                startActivity(next);
            }
        });
    }
}
